package com.ZeroCarbon.exception;

import lombok.experimental.Accessors;

/**
 * 业务逻辑中断异常
 */
@Accessors(chain = true)
public class BusinessLogicException extends Exception {

    //网络请求或IO处理业务方面异常
    public static final String BUSY_EXCEPTION = "服务器繁忙，请稍后重试";

    //逻辑处理方面异常
    public static final String ERROR_EXCEPTION = "服务器数据处理异常，请稍后重试";

    //过期异常
    public static final String EXPIRED_EXCEPTION = "相关数据过期";

    public BusinessLogicException() {

    }

    public BusinessLogicException(String message) {
        super(message);
    }
}
